package cmd.commands;

import java.util.Arrays;
import java.util.List;

import model.inventory.InventoryPlayer;
import util.PlayerUtilities;


public class RemvoeAllInventoryCommand extends Command {

	public RemvoeAllInventoryCommand(Command c) {
		super(c.command, c.parameters);
	}

	@Override
	public boolean execute() {
		List<String> vehicleIDs = Arrays.asList(parameters);
		InventoryPlayer.getInstance().removeInventoryByVehicleID(vehicleIDs);
		PlayerUtilities.setUpdateStringJsonString("REMOVE_ALL_INVENTORY",vehicleIDs);
		return true;
	}
}
